<?php
class ContactController extends FW24H_AppController{

	function index() {
		if( $_POST) {
			if( !fw24h_validate( $_POST['Content'], VALID_NOT_EMPTY)) {
				$this->setParam( 'index_error', 'Noi dung ko duoc rong');
			}else{
				$objModel = new FW24H_Model( 'thongbao', 'ID');
				$objModel->save( $_POST);
				$this->setParam( 'postData', $_POST);
				$this->redirect('/contact/thanks/');
			}
		}
		parent::beforeFilter();
		$this->render();
	}

	function thanks() {
		$this->render();
	}

	function beforeFilter() {

	}


}

